package com.lwc.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    private  final  long default_time=30*60*1000; //默认30分钟
    private final   String default_secret="c587d15d-f90e-46bc-be69-a671249838fa";//秘钥
long validTime;//分钟
String secret;//秘钥

    public  TokenProperties(){
        this.validTime=default_time;
        this.secret=default_secret;
    }

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

}
